<?php /*a:1:{s:61:"E:\source\EasyPeak\application\common\view\items\ueditor.html";i:1574494554;}*/ ?>
<div class="layui-form-item <?php if(!$v['show']): ?>layui-hide<?php endif; ?>" style="width:98%;">
    <label class="layui-form-label"><?php echo htmlentities($v['title']); ?></label>
    <div class="layui-input-block">
        <textarea id="<?php echo htmlentities($v['name']); ?>" name="form[<?php echo htmlentities($v['name']); ?>]" ><?php echo htmlentities((isset($model[$v['name']]) && ($model[$v['name']] !== '')?$model[$v['name']]:'')); ?></textarea>
    </div>
</div>

<script>
    layui.config({
        base: '/static/layui/extend/'
    }).extend([
        'ueditor'
    ]).use(['form','ueditor'],function(){
        UE.getEditor('<?php echo htmlentities($v['name']); ?>', {
            autoHeightEnabled: true,
            initialFrameHeight:500,
            serverUrl: "<?php echo url('admin/ueditor/index'); ?>"
        });
    });
</script>